import {Component} from 'angular2/core';

@Component({
    selector: 'my-app',
    
    // template: '<h1>My First Angular 2 App</h1>',
    templateUrl: 'app/helloworld/app.component.html',
    
    // styles: ['.appDiv{padding: 40px;}'],
    // styleUrls: ['app/helloworld/app.component.css']
})
export class AppComponent { 
    userName = 'user 007'
    showTest : boolean;
    list: [string];
    isOn = true;
    isDisabled = true;
    
    constructor() {
        this.showTest = false;
        this.list = ["item1", "item21", "item3"];
    }
    
    btnShowTest() {
        this.showTest = !this.showTest;
    }
    
    onSubmit(value: any): void {
        console.log(value);
    }
}
